// 云函数入口文件
const cloud = require('wx-server-sdk')
cloud.init()
let db = cloud.database()
exports.main = async (event)=>{
    return await db.collection('students').doc('65825b355f43b052002fe0b720572b38').get()
}
// 云函数入口函数
exports.main = async (event, context) => {
    const wxContext = cloud.getWXContext()
    return {
        event,
        sum:event.a + event.b,
        openid: wxContext.OPENID,
        appid: wxContext.APPID,
        unionid: wxContext.UNIONID,
    }
}